import {ThemeContext} from '../contexts/theme-context';
import React from 'react';

class ThemedButton extends React.Component {
    render() {
        let props = this.props;
        let theme = this.context;
        console.log('theme',theme)
        return (
            <button
                {...props}
                style={{
                    color: theme.color,
                    backgroundColor: theme.background
                }}
            ></button>
        );
    }
}
ThemedButton.contextType = ThemeContext;

export default ThemedButton;